package cn.yuanqiao.archive.Identify.domain;/**
 * @author 赵常飞
 * @date 2023/12/6 10:05
 */

import cn.yuanqiao.common.annotation.Excel;
import cn.yuanqiao.common.exception.ServiceException;
import cn.yuanqiao.common.utils.StringUtils;
import cn.yuanqiao.common.core.domain.BaseEntity;
import cn.yuanqiao.common.utils.SecurityUtils;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 *@Author: 赵常飞
 *@Date: 2023/12/6 10:05
 *@Description:
 *@Note:
 */

public class TenantYqMjjdJob extends BaseEntity {
    private final String BIGTABLENAME = "_MJJD_JOB";
    private static final long serialVersionUID = 1L;
    private String tableName;
    public TenantYqMjjdJob() {
        String tenantCode = SecurityUtils.getTenantCode();
        if(StringUtils.isEmpty(tenantCode)){
            throw new ServiceException("TenantCode is null");
        }else {
            this.tableName = tenantCode.toUpperCase()+BIGTABLENAME;
        }
    }
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    /** 主键id */
    private Long id;

    /** 名称 */
    @NotNull(message = "请填写任务名称")
    @Excel(name = "任务名称")
    private String jiandingrenwuname;

    /** 任务批次号 */
    @NotNull(message = "请填写任务批次号")
    @Excel(name = "任务批次号")
    private String renwuno;

    /** 全宗号 */
    @NotNull(message = "请填写全宗号")
    @Excel(name = "全宗号")
    private String qzh;

    private String qzhcode;

    /** 鉴定状态 */
    private int jiandingstate;

    /** 鉴定组组长 */
    @Excel(name = "鉴定组组长")
    private Long jiandingleader;

    /** 初审人 */
    @Excel(name = "初审人")
    private String chushenpeople;

    /** 复审人 */
    @Excel(name = "复审人")
    private String fushenpeople;

    /** 审定人 */
    @Excel(name = "审定人")
    private Long shendingpeople;

    /** 鉴定开始时间 */
    @Excel(name = "鉴定开始时间")
    private String jiandingstartdate;

    /** 鉴定结束时间 */
    @Excel(name = "鉴定结束时间")
    private String jiandingenddate;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    /** 删除状态 */
    private Integer isDel;

    /** 分表名 */
    private String subTableName;

    /** 审定结果 */
    @Excel(name = "审定结果")
    private Integer shendingResult;

    /** 创建人 */
    private Long creator;

    /** 创建时间 */
    private Date createTime;

    /** 修改人 */
    private Long updatedBy;

    /** 修改时间 */
    private Date updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getJiandingrenwuname() {
        return jiandingrenwuname;
    }

    public void setJiandingrenwuname(String jiandingrenwuname) {
        this.jiandingrenwuname = jiandingrenwuname;
    }

    public String getRenwuno() {
        return renwuno;
    }

    public void setRenwuno(String renwuno) {
        this.renwuno = renwuno;
    }

    public String getQzh() {
        return qzh;
    }

    public void setQzh(String qzh) {
        this.qzh = qzh;
    }

    public int getJiandingstate() {
        return jiandingstate;
    }

    public void setJiandingstate(int jiandingstate) {
        this.jiandingstate = jiandingstate;
    }

    public Long getJiandingleader() {
        return jiandingleader;
    }

    public void setJiandingleader(Long jiandingleader) {
        this.jiandingleader = jiandingleader;
    }

    public String getChushenpeople() {
        return chushenpeople;
    }

    public void setChushenpeople(String chushenpeople) {
        this.chushenpeople = chushenpeople;
    }

    public String getFushenpeople() {
        return fushenpeople;
    }

    public void setFushenpeople(String fushenpeople) {
        this.fushenpeople = fushenpeople;
    }

    public Long getShendingpeople() {
        return shendingpeople;
    }

    public void setShendingpeople(Long shendingpeople) {
        this.shendingpeople = shendingpeople;
    }

    public String getJiandingstartdate() {
        return jiandingstartdate;
    }

    public void setJiandingstartdate(String jiandingstartdate) {
        this.jiandingstartdate = jiandingstartdate;
    }

    public String getJiandingenddate() {
        return jiandingenddate;
    }

    public void setJiandingenddate(String jiandingenddate) {
        this.jiandingenddate = jiandingenddate;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getIsDel() {
        return isDel;
    }

    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    public String getSubTableName() {
        return subTableName;
    }

    public void setSubTableName(String subTableName) {
        this.subTableName = subTableName;
    }

    public Integer getShendingResult() {
        return shendingResult;
    }

    public void setShendingResult(Integer shendingResult) {
        this.shendingResult = shendingResult;
    }

    public Long getCreator() {
        return creator;
    }

    public void setCreator(Long creator) {
        this.creator = creator;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(Long updatedBy) {
        this.updatedBy = updatedBy;
    }

    @Override
    public Date getUpdateTime() {
        return updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getQzhcode() {
        return qzhcode;
    }

    public void setQzhcode(String qzhcode) {
        this.qzhcode = qzhcode;
    }

    @Override
    public String toString() {
        return "TenantYqMjjdJob{" +
                "BIGTABLENAME='" + BIGTABLENAME + '\'' +
                ", tableName='" + tableName + '\'' +
                ", id=" + id +
                ", jiandingrenwuname='" + jiandingrenwuname + '\'' +
                ", renwuno='" + renwuno + '\'' +
                ", qzh='" + qzh + '\'' +
                ", qzhcode='" + qzhcode + '\'' +
                ", jiandingstate=" + jiandingstate +
                ", jiandingleader=" + jiandingleader +
                ", chushenpeople='" + chushenpeople + '\'' +
                ", fushenpeople='" + fushenpeople + '\'' +
                ", shendingpeople=" + shendingpeople +
                ", jiandingstartdate='" + jiandingstartdate + '\'' +
                ", jiandingenddate='" + jiandingenddate + '\'' +
                ", remark='" + remark + '\'' +
                ", isDel=" + isDel +
                ", subTableName='" + subTableName + '\'' +
                ", shendingResult=" + shendingResult +
                ", creator=" + creator +
                ", createTime=" + createTime +
                ", updatedBy=" + updatedBy +
                ", updateTime=" + updateTime +
                '}';
    }
}
